package day9;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Vector;

/**
 * @author oldliu
 * @since 1.0
 */
public class ClassTest3 {
    public static void main(String[] args) {
        //
        Class<Vector> vc = Vector.class;
        //获得方法
        Method[] methods = vc.getDeclaredMethods();
        //获得属性
        Field[] declaredFields = vc.getDeclaredFields();
        //构造方法
        Constructor<?>[] contrs = vc.getDeclaredConstructors();

    }
}
